#include <stdio.h>
#include "type.h"

#define PACKET_BUFFER 0xFFFF
#define COMMAND_NUMBERS	0x100

#define NETFN_0x00  0x00//01
#define NETFN_0x02  0x02//03
#define NETFN_0x04  0x04//05
#define NETFN_0x06  0x06//07
#define NETFN_0x08  0x08//09
#define NETFN_0x0A  0x0A//0B
#define NETFN_0x0C  0x0C//0D
#define NETFN_0x2C  0x2C//2D
#define NETFN_0x2E  0x2E//2F
#define NETFN_0x30  0x30//31
#define NETFN_0x32  0x32//33
#define NETFN_0x34  0x34//35
#define NETFN_0x36  0x36//37
#define NETFN_0x38  0x38//39
#define NETFN_0x3A  0x3A//3B
#define NETFN_0x3C  0x3C//3D
#define NETFN_0x3E  0x3E//3F

#define PRIVILEGE_C 0x00
#define PRIVILEGE_U 0x01
#define PRIVILEGE_O 0x02
#define PRIVILEGE_A 0x04
#define PRIVILEGE_ALL (PRIVILEGE_C | PRIVILEGE_U | PRIVILEGE_O | PRIVILEGE_A)

#define CHANNEL_LAN	0x01
#define CHANNEL_ALL ( CHANNEL_LAN )

#define CC_NORMALLY     0x00
#define CC_NODE_BUSY    0xC0
#define CC_INVALID_COMMAND  0xC1
#define CC_INVALID_COMMAND_LUN  0xC2
#define CC_PROCESSING_TIMEOUT   0xC3
#define CC_OUT_OF_SPACE 0xC4
#define CC_INVALID_RESERVATION_ID   0xC5
#define CC_REQUEST_DATA_TRUNCATED   0xC6
#define CC_DATA_LENGTH_INVALID      0xC7


